:root {
    --grey : #969896;
    --red : #cc6666;
    --green : #b5bd68;
    --yellow : #f0c674;
    --blue : #81a2be;
    --white : #f4f4f4;
    --purple : #c259cf;
    --black : #1d1f21;
}

::selection {
    background: var(--white);
    color: var(--black);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--black);
    color : var(--white);
    font-family: monospace;
    font-smooth: none;
    -webkit-font-smoothing : none;
    display: flex;
    width: 100dvw;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
#postcontainer {
    width: 40dvw;
}

.post {
    border: 1px solid var(--grey);
    padding: 10px;
    margin: 10px;
}

.post h2 {
    margin: 0 0 5px 0; 
    color: var(--green);
}

.date {
    color: var(--grey);
}

.tags {
    color: var(--red);
}

img {
    max-width: 100%;
    height: auto;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Centered modal box */
.modal-content {
  color: black;
  background: #ffffff;
  width: 300px;
  padding: 20px;
  border: 1px black solid;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Close button (X) */
.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
  position: relative;
  top: -15px;
}

.modal-content .titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-content textarea {
height: 150px; 
}

/* Form inputs */
.modal-content input,
.modal-content textarea,
.modal-content button {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}




@media (max-width: 800px) {
    #postcontainer {
        width: 100dvw;
    }
}


